<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>在线OJ_题目链表</title>
    <style>
        * {
            /*消除网页的默认外边距*/
            margin: 0px;
            /*消除网页的默认内边距*/
            padding: 0px;
        }

        html,
        body {
            width: 100%;
            height: 100%;
        }

        .container .content {
            width: 800px;
            background-color: #ccc;
            margin: 0px auto;

            /*<!-- 设置文字居中 -->*/
            text-align: center;
            margin-top: 200px;

        }

        .container .content .font_ {
            margin-top: 20px;
            display: block;
            text-decoration: none;
            /*<!-- 设置上外边距 -->*/
        }

        .container .navbar {
            background-color: black;
            width: 100%;
            height: 50px;
            /*给父级标签设置overflow，取消后续float带来的影响*/
            overflow: hidden;
        }

        .container .navbar a {
            /*设置a标签为行内快元素*/
            display: inline-block;
            color: white;
            font-size: large;
            line-height: 50px;
            text-decoration: none;
            width: 80px;
            text-align: center;
        }

        .container .navbar a:hover {
            background-color: green;
        }

        .container .navbar .login {
            float: right;
        }

        .container .question_list {

            width: 800px;
            height: 100%px;
            margin: 0px auto;
            text-align: center;
            /*background-color: #ccc;*/
            padding-top: 100px;

        }

        .container .question_list table {
            width: 100%;
            font-size: large;
            font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
            margin-top: 50px;
            background-color: #d2e1e3;
        }

        .container .question_list h1 {
            background-color: green;
        }

        .container .question_list table .item {
            width: 100px;
            height: 40px;
            font-size: large;
            font-family: 'Times New Roman', Times, serif;
        }

        .container .question_list table .item a {
            text-decoration: none;
            color: black;
        }

        .container .question_list table .item a:hover {
            color: blue;
        }
        .container .footer{
            width: 100%;
            height: 50px;
            text-align: center;
            background-color: #ccc;
            line-height: 50px;
            color:#fff;
            margin-top:15px;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="navbar">
            <a href="/">首页</a>
            <a href="/all_questions">题库</a>
            <a href="#">竞赛</a>
            <a href="#">求职</a>
            <a href="#" class="login">登录</a>
        </div>
        <div class="question_list">
            <h1>OlineJudge题目列表</h1>
            <table>
                <tr>
                    <th class="item">编号</th>
                    <th class="item">标题</th>
                    <th class="item">难度</th>

                </tr>
                {{#question_list}}
                <tr>
                    <td class="item">{{number}}</td>
                    <td class="item"><a href="/question/{{number}}">{{title}}</a></td>
                    <td class="item">{{star}}</td>
                </tr>
                {{/question_list}}
            </table>

        </div>
        <div class="footer">
            <h4>@zdl</h4>
        </div>
    </div>


    </div>

</body>

</html>